﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>showExamByid</title>
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Content/utf8-net/ueditor.config.js"></script>
    <script src="~/Content/utf8-net/ueditor.all.js"></script>
    <link href="~/Content/utf8-net/themes/iframe.css" rel="stylesheet" />
    <script src="~/Content/utf8-net/lang/zh-cn/zh-cn.js"></script>
    <script src="~/Scripts/jquery-1.10.2.js"></script>

    <script>
        var editor = new baidu.editor.ui.Editor({

            UEDITOR_HOME_URL: '/Content/utf8-net/',//配置编辑器路径

            iframeCssUrl: '/Content/utf8-net/themes/iframe.css',//样式路径

            initialContent: '欢迎使用ueditor',//初始化编辑器内容

            autoHeightEnabled: true,//高度自动增长

            minFrameHeight: 500//最小高度

        });

        editor.render('editor');
    </script>
</head>
<body>
    接收分布式图
    @{ string prital = ViewBag.prital;}
    <div style="width:1000px;height:auto;background-color:#efd7d7">
        <div style="width:980px;height:30px;background-color:#ff0000;margin:0 auto;line-height:30px">
            <p style="font-size:20px">添加试题<span style="float:right"><input id="Button1" type="button" value="返回" onclick="fh()" /></span></p>
        </div>
        <hr style="color:#808080" />
        
        @foreach (var item in Model)
        {
            <div style="width:940px;height:auto;background-color:#ff6a00;margin:0 auto">
                @using (@Html.BeginForm("updtExamByid", "QuestionBank", FormMethod.Post))
                {
                    <div style="width:900px;height:35px;background-color:#b6ff00;margin:0 auto">
                        题型：
                        @if (@item.questionId == 1.ToString())
                        {
                            <input name="Button2" type="button" value="单选题" />
                        }
                        else if (@item.questionId == 2.ToString())
                        {
                            <input name="Button2" type="button" value="多选题" />
                        }
                        else if (@item.questionId == 2.ToString())
                        {
                            <input name="Button2" type="button" value="不定项选择题" />
                        }
                        else if (@item.questionId == 2.ToString())
                        {
                            <input name="Button2" type="button" value="填空题" />
                        }
                        else if (@item.questionId == 2.ToString())
                        {
                            <input name="Button2" type="button" value="判断题" />
                        }
                        else
                        {
                            <input name="Button2" type="button" value="问答题" />
                        }
                    </div>
                    <hr style="color:#808080" />
                    <div style="width:900px;height:auto;background-color:#b6ff00;margin:0 auto">
                        题干：
                        <textarea name="editor" rows="2" cols="20">@item.topicName</textarea>
                       
                        
                    </div>
                    <hr style="color:#808080" />
                    <div style="width:900px;height:auto;background-color:#b6ff00;margin:0 auto">
                        选项：

                        @Html.TextArea("@item.topicName")
                        @*@Html.Partial(prital)*@
                        
                    </div>
                    <hr style="color:#808080" />
                    <div style="width:900px;height:auto;background-color:#b6ff00;margin:0 auto">
                        <p>
                            难度：
                            <input name="nd" type="text" value="@item.topicNandu"/>级(1--5级)                           
                            <span style="float:right; margin-right:100px">
                                默认分值：
                                <input name="fz" type="text" value="@item.topicFenZhi"/>分
                            </span>
                        </p>
                    </div>
                    <hr style="color:#808080" />
                    <div style="width:900px;height:auto;background-color:#b6ff00;margin:0 auto">
                        题目解析：
                        <input name="jiexi" type="text" value="@item.topicJieXi"/>
                    </div>
                    <hr style="color:#808080" /><br />
                    <div style="width:900px;height:auto;background-color:#b6ff00;margin:0 auto;text-align:center">
                        <input id="Submit1" type="submit" value="提交" style="width:100px;height:35px;border-radius:inherit" />
                    </div>
                }

            </div>
        }
    </div>

</body>
</html>
